ds=$1

sqoop import \
--delete-target-dir \
--connect jdbc:mysql://cdh01:3306/trip? \
--username trip \
--password 'trip45345...' \
--query "select * from passenger where  \$CONDITIONS" \
--target-dir /daas/motl/bigdata01/wyc/ods/ods_passenger/ds=$ds \
--fields-terminated-by ',' \
-m 1

hive -e "alter table bigdata01_ods.ods_passenger  add if not exists partition(ds='$ds');"